<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>

<isperp:grid url="sparepart/sparepartIn/list" gridId="sparepartInGrid"
	processKey="sparepartInProcess" sortname="code" sortorder="desc"
	ondbClickRowEvent="sparepartInGrid.edit(rowid);" cusDialogSize="big">
	<jsp:attribute name="toolbar">

	<isperp:treeMenu id="sparepartInMenu" targetGridId="sparepartInGrid">
		<isperp:async enable="true" url="sparepart/sparepartIn/processMenu"></isperp:async>
		<isperp:callback onClick="sparepartInMenuTree_onNodeClick"
				onAsyncSuccess="sparepartInMenuTree_onNodeClickFirst();">
		</isperp:callback>
	</isperp:treeMenu>
	<isperp:button id="userCeate" icon="icon-plus" text="入库申请"  cssClass="nui-mainbtn"
			onclick="sparepartInGrid.create();"></isperp:button>
	</jsp:attribute>

	<jsp:attribute name="searchbar">
	<table class="search-table">
		<tbody>
			<tr>
				<td class="td1">编号：</td>
				<td class="td2"><input type="text" field="code" op="cn">
					</td>
				<td class="td1">描述：</td>
				<td class="td2"><input type="text" field="memo" op="cn">
					</td>
				<td class="td1">供应商：</td>
				<td class="td2"><input type="text" field="providerId" op="cn">
					</td>
			</tr>

			<tr>
				<td class="td1">采购日期：</td>
				<td class="td2" colspan="5"><input id="instockDateStart"
						type="date" field="instockDate" op="gt" style="width: 68px" />~<input
						id="instockDateEnd" type="date" field="instockDate" op="lt"
						style="width: 68px" />
					</td>

			</tr>
		</tbody>
	</table>
	</jsp:attribute>
	<jsp:body>
	<isperp:column name="id" title="id" hidden="true"></isperp:column>
	<isperp:column name="code" title="编号" width="100">
	</isperp:column>
	<isperp:column name="memo" title="描述" width="180">
	</isperp:column>
	<isperp:column name="amount" title="总金额" width="100">
	</isperp:column>
	<isperp:column name="instockDate" title="采购日期" width="100"
			>
	</isperp:column>
	<isperp:column name="creator" title="填表人" width="80">
	</isperp:column>
	<isperp:column name="status" title="状态" width="100">
	</isperp:column>
	</jsp:body>
</isperp:grid>

<isperp:operate code="SPT_PURCHASE"></isperp:operate>
